package com.example.chat.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 群组实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("chat_group")
public class Group extends BaseEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;              // 主键ID
    
    @TableField("group_id")
    private Long groupId; // 群组ID

    @TableField("name")
    private String name; // 群组名称
} 